package com.tomato.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "待办记录DTO")
public class TodoRecordDTO {
    @Schema(description = "关联的待办设定 ID", required = true)
    private Long settingId;

    @Schema(description = "本次开始时间", required = true)
    private LocalDateTime startTime;

    @Schema(description = "本次结束时间；倒计时到点或正向计时手动结束")
    private LocalDateTime endTime;

    @Schema(description = "0=进行中/未达标；1=已完成（含休息或跳过）")
    private Boolean finished = false;

    @Schema(description = "本次实际完成的总专注秒数")
    private Integer actualFocusSeconds = 0;

    @Schema(description = "本次实际休息秒数（用户可跳过）")
    private Integer actualRestSeconds = 0;
}